const UserModel = require("../model/UserModel")

// 查找数据库匹配用户
const LoginService = {
    login: (username, password) => {
        return UserModel.find({ username, password }, ["_id", "username", "status"])
    }
}
module.exports = LoginService